package it.rockliveitalia.feedback;

import it.rockliveitalia.RockLiveItaliaApplication;


import org.acra.ACRA;
import org.acra.ErrorReporter;


public class FeedbackHelper {

	public static void newEventFeedback(
			final String event) {

		ACRA.setConfig(RockLiveItaliaApplication.getACRAFeedbackConfig());

		ErrorReporter er = ACRA.getErrorReporter();
		er.putCustomData("Evento", event);

		ACRA.getErrorReporter().handleSilentException(new NewEventException());

		// Ripristina la configurazione standard di ACRA

		er.removeCustomData("Evento");
	

		ACRA.setConfig(RockLiveItaliaApplication.getACRAStandardConfig());

	}
}
